package struct.help
{
	import flash.events.MouseEvent;
	
	import struct.help.ui.HelpPanel;

	public class HelpModule
	{
		private var base:HelpPanel;
		protected static var _instance:HelpModule;
		
		public function HelpModule()
		{
			base = new HelpPanel(518, 378);
		}
		
		public static function getInstance():HelpModule
		{
			if (!_instance)
			{
				_instance = new HelpModule();
			}
			return _instance;
		}
		
		public function startUp():void
		{
			Main.application.popUpManager.addPopup(base);
			base.btnClose.addEventListener(MouseEvent.CLICK, onClick);
		}
		
		protected function onClick(event:MouseEvent):void
		{
			Main.application.popUpManager.removePopUp(base);
			base.btnClose.removeEventListener(MouseEvent.CLICK, onClick);
		}
		
		public function close():void
		{
			
		}
	}
}